package Schedule::Chronic::Distributed::Category;

=head1 NAME

Schedule::Chronic::Distributed::Category - Task/Command Category

=head1 SYNOPSIS

use Schedule::Chronic::Distributed::Category;

.. TODO.. 

=head1 DESCRIPTION

Category class, categorises tasks and commands into groups for easier
organisation, and allows you to specify paths for commands per category.

=head1 METHODS

=head2 ACCESSORS

=over

=item id 

=item name
 
=item description

=item path

=back

=cut

use strict;
use Time::Piece;
use Module::Find;

use base qw(Schedule::Chronic::Distributed::DBI);

__PACKAGE__->table('category');
__PACKAGE__->sequence('category_id_seq');
__PACKAGE__->columns(All => qw/id name description path/);
__PACKAGE__->columns(Primary => 'id');

__PACKAGE__->has_many(tasks => 'Schedule::Chronic::Distributed::Task');
__PACKAGE__->has_many(command => 'Schedule::Chronic::Distributed::Command');

=head1 SEE ALSO

Schedule::Chronic::Distributed

Schedule::Chronic::Distributed::Task

Schedule::Chronic::Distributed::Command

=head1 AUTHOR

aaron trevena, E<lt>aaron.trevena@gmail.comE<gt>

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2006 by Aaron Trevena, Aviation Briefing Ltd

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.

=cut


1;
